/**
 * Created by mouh on 2017/5/22.
 */

'use strict'

import React, { Component } from 'react';
import {
    StyleSheet,
} from 'react-native';

import model from '../classes/Model';


var getMaxHeight= function (s1, s2) {
    return s1 + s2;
};

export default  {
    styles : StyleSheet.create({

        testStyle:{
            width: getMaxHeight(24, 40)
        },

        container: {
            flex: 1
        },

        navStyle: {
            height: getMaxHeight(24, 40), // 导航栏的高度
            width: model.screen_w,
            backgroundColor: 'red'
        },

        navContent: {
            height: 44,
            width: model.screen_w,
            marginTop: 20,
            flexDirection:'row',
            alignItems:'center',
            justifyContent:'space-between'
        },

        leftItem: {
            marginLeft: 10,
            color: 'white',
            fontSize: 14,

        },

        navTitle: {
            position:'absolute',
            left: (model.screen_w - 64) * 0.5,
            height: 44,
            lineHeight: 44,
            color: 'white',
            fontSize: 18,
            fontWeight:'bold'
        },

        rightItem: {
            marginRight: 10,
            color: 'white',
            fontSize: 14,
        },

        adPicture: {
            height: 200,
            width: model.screen_w,
            backgroundColor:"orange"
        },

        cellStyle: {
            height: 90,
        },

        cellContent: {
            height: 89,
            flexDirection:'row',
            alignItems:'center',
            justifyContent:'space-between'
        },

        lefftContent: {
            flexDirection: 'row',
            alignItems:'center',
            height: 63,
            marginLeft:10
        },

        seperatorLine: {
            width: model.screen_w,
            height: 1,
            backgroundColor:'#ddd'
        },

        icon: {
            height: 25,
            width: 25,
            backgroundColor:'red',

        },

        textContent: {
            marginLeft: 10,
            width:model.screen_w - 30 - 80 - 50
        },

        name: {
            fontSize: 16,
        },

        detail: {
            color: '#ccc',
            fontSize: 14,
            marginTop:5
        },

        rightButton: {
            marginRight: 10,
            width: 80,
            fontSize: 14,
            height: 25,
            borderWidth: 1,
            borderColor:'red',
            color:'red',
            textAlign:'center',
            lineHeight:25
        },

    })
}